package com.chb.adapter;

/**
 * @author chihb
 * @create-time 2024/10/23 17:09
 * @description
 */
public class Computer {
    public String read(SDCard sdCard) {
        if (sdCard == null) {
            throw new NullPointerException("sdCard is not null");
        }
        return sdCard.readSD();
    }

    public void write(SDCard sdCard, String msg) {
        if (sdCard == null) {
            throw new NullPointerException("sdCard is not null");
        }
        sdCard.writeSD(msg);
    }
}
